<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
    /**
     * 查看分类详情
     */
    function detailInfo(id){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/customerAcceptAddress/getCustomerAcceptAddressObject.sjson",
            data: {customerAcceptAddressId:id},
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_consignee").html(data.consignee);
                $("#d_provincecitycountry").html(data.regionLocation+data.city+data.areaCounty);
                $("#d_address").html(data.address);
                $("#d_email").html(data.email);
                $("#d_postcode").html(data.postcode);
                $("#d_phone").html(data.phone);
                $("#d_mobilePhone").html(data.mobilePhone);
                $("#d_flagContractor").html(data.flagContractor);
                if(data.bestSendDate!=""&&data.bestSendDate!=undefined){
                    $("#d_bestSendDate").html(new Date(data.bestSendDate).Format("yyyy-MM-dd hh:mm:ss"));
                }

                if(data.isSendAddress=="0"){
                    $("#d_isSendAddress").html("<font class='color_002'>否</font>");
                }else{
                    $("#d_isSendAddress").html("<font class='color_001'>是</font>");
                }
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">会员收货地址信息详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">收货人姓名:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_consignee"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">省市区:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_provincecitycountry"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">详细地址:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_address"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">邮箱地址:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_email"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">邮政编码:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_postcode"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">电话:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_phone"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">手机号:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_mobilePhone"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">标志建筑:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_flagContractor"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">最佳送货时间:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_bestSendDate"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">是否为默认地址:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_isSendAddress"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>